﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCQueryParameter.ascx.cs"
    Inherits="com.cngrain.SAFC.Web.res.inc.UCQueryParameter" %>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>

<script src="../res/js/dateCon/WdatePicker.js" type="text/javascript"></script>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <table width="100%" border="0" class="noboder">
            <tr>
                <td colspan="4" class="tdthread">
                    <asp:Label ID="lbTitle" runat="server" Text="成交合同正式导入数据"></asp:Label>
                </td>
            </tr>
            <tr class="noboder">
                <td class="tbtitle noboder">
                    成交日期：
                </td>
                <td style="border-right-width: 0px;">
                    <input id="txtContrantStartDate" style="width: 90px" onclick="WdatePicker({maxDate:'#F{$dp.$D(txtContrantEndDate)}'})"
                        class="Wdate" type="text" runat="server" />
                    至
                    <input id="txtContrantEndDate" type="text" style="width: 90px" onclick="WdatePicker({minDate:'#F{$dp.$D(txtContrantStartDate)}'})"
                        class="Wdate" runat="server" />
                </td>
                <td class="tbtitle noboder" id="spanMatchDate1" runat="server">
                    导入日期：
                </td>
                <td class="tbright noboder" id="spanMatchDate2" runat="server">
                    <input id="txtStartDate" style="width: 90px" onclick="WdatePicker({maxDate:'#F{$dp.$D(txtEndDate)}'})"
                        class="Wdate" type="text" runat="server" />
                    至
                    <input id="txtEndDate" type="text" style="width: 90px" onclick="WdatePicker({minDate:'#F{$dp.$D(txtStartDate)}'})"
                        class="Wdate" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="tbtitle">
                    分&nbsp;公&nbsp;司：
                </td>
                <td class="tbright">
                    <asp:DropDownList ID="ddlBranch" Width="240" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlBranch_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
                <td class="tbtitle">
                    直&nbsp;属&nbsp;库：
                </td>
                <td class="tbright">
                    <asp:DropDownList ID="dropOrg" Width="240" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="tbtitle">
                    粮食性质：
                </td>
                <td class="tbright">
                    <asp:DropDownList ID="dropGp" runat="server" Width="120" AutoPostBack="true" OnSelectedIndexChanged="dropGp_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
                <td class="tbtitle">
                    粮食品种：
                </td>
                <td class="tbright">
                    <asp:DropDownList ID="dropVariety" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="tbtitle">
                    拍卖等级：
                </td>
                <td class="tbright">
                    <asp:DropDownList ID="dropGrade" runat="server">
                    </asp:DropDownList>
                </td>
                <td class="tbtitle">
                    交易市场：
                </td>
                <td class="tbright">
                    <asp:DropDownList ID="ddlMarket" runat="server">
                    </asp:DropDownList>
                    <input id="txtHouseCode" style="display: none" type="text" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="tbtitle">
                    合同编号：
                </td>
                <td class="tbright" colspan="3">
                    <asp:TextBox ID="txtContractNo" Width="175px" runat="server"></asp:TextBox>
                </td>
            </tr>
        </table>

        <script type="text/javascript">
            txtStartDate = '<%=txtStartDate.ClientID %>';
            txtEndDate = '<%=txtEndDate.ClientID %>';

            txtContrantStartDate = '<%=txtContrantStartDate.ClientID %>';
            txtContrantEndDate = '<%=txtContrantEndDate.ClientID %>';
        </script>

    </ContentTemplate>
</asp:UpdatePanel>
